import { postRequest, getRequest } from '@/lib/axios';
import { 
    LIVEUSER,
    LIVEROOMS,
    LIVEROOMSEDIT,
    BANNED,
    BDLIST,
    BDADD,
    BDUPDATE,
    BDDELETE,
    TRADELIST,
    TRADEADD,
    TRADEUPDATE,
    TRADEDELETE,
    LIVEMEMBERLIST,
    LIVEMEMBERADD,
    LIVEMEMBERUPDATE,
    LIVEMEMBERDELETE,
} from '@/config/api-constant/moby'

// 直播用户
export const liveUserApi = (param) => {
    return postRequest(LIVEUSER, param)
}

// 直播列表
export const liveRoomsApi = (param) => {
    return postRequest(LIVEROOMS, param)
}

// 直播排序/推荐编辑
export const liveRoomsEdit = (param) => {
    return postRequest(LIVEROOMSEDIT, param)
}

// 直播封禁记录
export const bannedApi = (param) => {
    return postRequest(BANNED, param)
}
//工会bd列表
export const bdList = (param) => {
    return getRequest(BDLIST, param)
}

// 工会bd添加
export const bdAdd = (param) => {
    return postRequest(BDADD, param)
}
// 工会bd更新
export const bdUpdate = (param) => {
    return postRequest(BDUPDATE, param)
}
// 工会bd删除
export const bdDelete = (param) => {
    return postRequest(BDDELETE, param)
}
//工会列表
export const tradeList = (param) => {
    return getRequest(TRADELIST, param)
}

// 工会添加
export const tradeAdd = (param) => {
    return postRequest(TRADEADD, param)
}
// 工会更新
export const tradeUpdate = (param) => {
    return postRequest(TRADEUPDATE, param)
}
// 工会删除
export const tradeDelete = (param) => {
    return postRequest(TRADEDELETE, param)
}
//工会主播列表
export const liveMemberList = (param) => {
    return getRequest(LIVEMEMBERLIST, param)
}

// 工会主播添加
export const liveMemberAdd = (param) => {
    return postRequest(LIVEMEMBERADD, param)
}
// 工会主播更新
export const liveMemberUpdate = (param) => {
    return postRequest(LIVEMEMBERUPDATE, param)
}
// 工会主播删除
export const liveMemberDelete = (param) => {
    return postRequest(LIVEMEMBERDELETE, param)
}